const { ccclass, property } = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    // @property(cc.Node)
    // color: cc.Node = null;

    color = new cc.Node();

    /**初始化设置函数 */
    setData({ showColor, tips }: { showColor: cc.Color, tips: string }) {
        this.color.color = showColor;
        console.warn("tips", showColor, tips);
    }

    onLoad() {
        //this.color.color = cc.Color.RED;
    }

}